﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using stefab.Musique;
using stefab;

namespace projet1_stefab
{
    public partial class DetailEvent : Form
    {
        private Event _event = null;

        public DetailEvent(Event unEvent)
        {
            InitializeComponent();
            this._event = unEvent;
            DetailEvenement();
        }

        private void DetailEvent_Load(object sender, EventArgs e)
        {

        }

        private void DetailEvenement()
        {
            lblidEvent.Text = "N° évènement : " + _event.id;
            lblTitreEvent.Text = "Titre : " + _event.title;
            lblDateEvent.Text = "Date : " + _event.date;
            lblUrlEvent.Text = _event.linkSite;
            lblDescriptionEvent.Text = "Description : " + _event.description;
            picEvent2.ImageLocation = _event.linkImage;
            picGeoEvent.ImageLocation = GoogleMapsApi.getUrlGeo(_event.getVenue().getLocation());
        }
    }
}
